/* --- Global Styles --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

a {
    color: #005A9C;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #003d6b;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #005A9C;
    color: #ffffff;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s, transform 0.2s;
}

.btn:hover {
    background-color: #004a80;
    color: #ffffff;
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.25rem;
    color: #003d6b;
    text-align: center;
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

/* --- Header & Navigation --- */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 0.75rem;
}

.logo-text h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #005A9C;
}

.logo-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #555;
}

.nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav a {
    font-weight: 600;
    color: #333;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover {
    color: #005A9C;
}

.nav a.active {
    color: #005A9C;
    border-bottom-color: #005A9C;
}

/* --- Hero Section (index.html) --- */
.hero {
    background-color: #005A9C;
    color: #ffffff;
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    line-height: 1.7;
    text-align: center; /* This was reset to center */
}

/* --- Main Video (index.html) --- */
.video-section {
    padding-top: 2rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Consistent max-width */
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000; /* Black background for letterboxing */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents cropping */
}

/* --- Features Grid (index.html) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    color: #005A9C;
    margin-top: 0;
}

/* --- About & Services Pages --- */
.about-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-section p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.features-list {
    font-size: 1.125rem;
    list-style-type: disc;
    padding-left: 2rem;
}

.features-list li {
    margin-bottom: 1rem;
}

/* --- Gallery (services.html) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: #e0e0e0;
}

.gallery-item p {
    font-weight: 600;
    color: #333;
}

/* --- Other Videos (services.html) --- */
.other-videos {
    padding-top: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    justify-items: center; /* Center the grid items */
    max-width: 1000px; /* Match the main video section */
    margin: 0 auto; /* Center the whole grid container */
}

.video-wrapper-small {
    width: 100%;
    max-width: 450px; /* Constrain individual video size */
}

.video-wrapper-small h3 {
    text-align: center;
    color: #003d6b;
}

/* --- Contact Form (contact.html) --- */
.contact-form {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.25rem;
    /* This is the fix: ensures label is on top of the input/textarea */
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #005A9C;
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.1);
    outline: none;
}

/* This was the style that was likely missing */
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    font-size: 1.125rem;
    padding: 1rem;
}

.btn-submit:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* --- Footer --- */
.footer {
    background-color: #003d6b;
    color: #e0e0e0;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    display: flex;
    /* justify-content: space-between; */
    justify-content: center; /* <-- CHANGED */
    flex-direction: column; /* <-- ADDED */
    text-align: center; /* <-- ADDED */
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-contact h3 {
    color: #ffffff;
    margin-top: 0;
}

.footer-contact a {
    color: #ffffff;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer p {
    margin: 0;
}

